"""
author:俞婧 杨光
create time:2020-07-07
update time:2020-07-15 16：18
"""

from django.contrib import admin

# Register your models here.


from .models import User
# Register your models here.
#在后台管理界面注册用户表
#admin.site.register(models.User)

#自定义管理User
class UserAdmin(admin.ModelAdmin):
    list_display = ['id','name','email','nick_name','sign','c_time']#列表显示
    list_filter = ['c_time']#过滤器
    search_fields = ['name', 'email', 'c_time']
    list_per_page =10

admin.site.register(User,UserAdmin)